import ForumList from './ForumList.vue'
import Publish from './Publish.vue'
import TinyEditor from './TinyEditor'
import Upload from './Upload'

const components = [
  ForumList,
  Publish,
  TinyEditor,
  Upload
]

const myComponent = {
  install(Vue) {
    components.map((component) => {
      Vue.component(component.name, component)
    })
  }
}

if (typeof window !== 'undefined' && window.Vue) {
  window.Vue.use(myComponent)
}
export default myComponent
